
import java.io.PrintWriter;

class ConditionalStatement extends Statement {

	private Node exp_;
	private Node stat_list_if_;
	private Node stat_list_else_;

	public ConditionalStatement(Node e, Node ss1, Node ss2) {
		exp_ = e;
		stat_list_if_ = ss1;
		stat_list_else_ = ss2;
	}

	public ConditionalStatement(Node e, Node ss) {
		exp_ = e;
		stat_list_if_ = ss;
	}

	@Override
	public void print(PrintWriter pw) {
		pw.println("Node name : ConditionalStatement");
		// assert( exp_ && stat_list_if_);
		exp_.print(pw);
		if (stat_list_if_ != null) {
			stat_list_if_.print(pw);
		}
		if (stat_list_else_ != null) {
			stat_list_else_.print(pw);
		}
	}

}